import {BasicColumn} from '/@/components/Table';
import {FormSchema} from '/@/components/Table';
import {h} from 'vue';
import {Switch} from 'ant-design-vue';

export const columns: BasicColumn[] = [
  {
    title: '区域',
    dataIndex: 'area',
    width: 200,
  },
  {
    title: '创建人',
    dataIndex: 'userId',
    width: 200,
  },
  {
    title: '收货人',
    dataIndex: 'userName',
    width: 200,
  },
  {
    title: '联系方式',
    dataIndex: 'mobile',
    width: 200,
  },
  {
    title: '详细地址',
    dataIndex: 'addressInfo',
    width: 200,
  },
  {
    title: '默认地址',
    dataIndex: 'defAddress',
    width: 200,
  },
  {
    title: '备注',
    dataIndex: 'remark',
    width: 200,
  },
  {
    title: '是否删除',
    dataIndex: 'deleted',
    width: 200,
  },
  {
    title: '更新人',
    dataIndex: 'updateUser',
    width: 200,
  },
  {
    title: '更新时间',
    dataIndex: 'updateTime',
    width: 200,
  },
  {
    title: '创建人',
    dataIndex: 'createUser',
    width: 200,
  },
  {
    title: '创建时间',
    dataIndex: 'createTime',
    width: 200,
  },
];

export const searchFormSchema: FormSchema[] = [];

export const formSchema: FormSchema[] = [
  {
    label: '区域',
    field: 'area',
    component: 'Input',
    required: true,
  },
  {
    label: '创建人',
    field: 'userId',
    component: 'Input',
    required: true,
  },
  {
    label: '收货人',
    field: 'userName',
    component: 'Input',
    required: true,
  },
  {
    label: '联系方式',
    field: 'mobile',
    component: 'Input',
    required: true,
  },
  {
    label: '详细地址',
    field: 'addressInfo',
    component: 'Input',
    required: true,
  },
  {
    label: '默认地址',
    field: 'defAddress',
    component: 'Input',
    required: true,
  },
  {
    label: '备注',
    field: 'remark',
    component: 'Input',
    required: true,
  },
  {
    label: '是否删除',
    field: 'deleted',
    component: 'Input',
    required: true,
  },
  {
    label: '更新人',
    field: 'updateUser',
    component: 'Input',
    required: true,
  },
  {
    label: '更新时间',
    field: 'updateTime',
    component: 'Input',
    required: true,
  },
  {
    label: '创建人',
    field: 'createUser',
    component: 'Input',
    required: true,
  },
  {
    label: '创建时间',
    field: 'createTime',
    component: 'Input',
    required: true,
  },
];
